﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<form id="form1">
    <div class='myzh_right_content fr'>
        <p class='right_head_title'><span class="span1">我的 ></span> 操作</p>
        <div class="recharge-content">
            <input type="hidden" id="id" name="id" value="${data.id}"/>
            <input type="hidden" id="rid" name="rid" value="${data.rid}"/>
            <div class="mt-10">
                <span class="fl mt-3 w-120">项目logo：</span>
                ${data.p_logo}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">ico名称：</span>
                ${data.ico_name}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">代币名称：</span>
                ${data.ticker}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">项目介绍：</span>
                ${data.pdesc}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">项目审核状态:</span>

                <input type="radio" value="0" name="ico_audit_status" ${data.ico_audit_status=="0"?"checked=checked":""} readonly="readonly">待审核
                <input type="radio" value="1" name="ico_audit_status" ${data.ico_audit_status=="1"?"checked=checked":""}>审核通过
                <input type="radio" value="2" name="ico_audit_status" ${data.ico_audit_status=="2"?"checked=checked":""}>审核拒绝

                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">举报内容：</span>
                ${data.content}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">图片信息：</span>
                ${data.images}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">email：</span>
                ${data.email}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">添加时间：</span>
                <fmt:formatDate value="${data.create_time }" pattern="yyyy-MM-dd HH:mm:ss"/>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">评论审核状态:</span>

                <input type="radio" value="0" name="audit_status" ${data.audit_status=="0"?"checked=checked":""} readonly="readonly">待审核
                <input type="radio" value="1" name="audit_status" ${data.audit_status=="1"?"checked=checked":""}>审核通过
                <input type="radio" value="2" name="audit_status" ${data.audit_status=="2"?"checked=checked":""}>审核拒绝

                <div class="cl"></div>
            </div>

            <div class="mt-30 ml-10">
                <input type="button" class="btn btn-1 fl w-100" value="${title}" onclick="add()">
                <input type="button" class="btn btn-2 fl w-100 ml-20" value="返回"
                       onclick="window.location='${basePath}/t_common_report/list'">
            </div>
        </div>
    </div>
</form>
<div class='clear'></div>
<script type="text/javascript">


    function add() {
        $.post("${basePath}/ajax/t_common_report/add", $("#form1").serialize(), function (d) {
            if (d.code == 1) {
                alert("成功");
                window.location = "${basePath}/t_common_report/list";
                return;
            }
            alert("失败");
        });
    }
</script>


